package com.sky.task;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

//@Component
public class DemoTaskConfig {
    @Scheduled(cron = "0/5 * * * * ?")
    public void test(){
        System.out.println(new Date()+"============");
    }
}
